package com.pattern.bridge;

/**
 * @author 冯志立
 * @create 2019-10-29 10:42
 */
public class Client {
    public static void main(String[] args) {
        //获取折叠式手机（样式+品牌）
        Phone foldedPhone = new FoldedPhone(new XiaoMi());
        foldedPhone.open();
        foldedPhone.close();
        foldedPhone.call();

        Phone uprightPhone = new UprightPhone(new XiaoMi());
        uprightPhone.call();
        uprightPhone.close();
        uprightPhone.open();
    }
}
